/** \file
* \par Subversion URL:
* \$URL: http://battletank211.googlecode.com/svn/trunk/engine/src/mytank.cpp $
* \version \$Rev: 13 $
* \date    \$Date: 2009-10-14 01:35:38 +0000 (Wed, 14 Oct 2009) $
*/

#include "mytank.hpp"

void MyTank::Limit(double x, double &y, double xmax) {
	if (x > xmax) y = xmax;
	else if (x < -xmax) y = -xmax;
	else y = x;
}
